﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace MyWcfRestLib.SamplePictureService
{
    [ServiceContract]

    public interface IPictureTransfer
    {
        [OperationContract]
        [WebInvoke(Method = "*", UriTemplate = "Download")]
        System.IO.Stream Download();

        [OperationContract]
        [WebInvoke(Method = "*", UriTemplate = "Upload")]
        void Upload(System.IO.Stream stream);

    }
}
